//
//  BZYRightDropDownCell.m
//  BZYMeituan
//
//  Created by 毕仲阳 on 16/9/15.
//  Copyright © 2016年 mycompany. All rights reserved.
//

#import "BZYRightDropDownCell.h"

@implementation BZYRightDropDownCell

+ (instancetype)rightDropDownCellWithTableView:(UITableView *)tableView
{
    static NSString *rightCellId = @"rightCellId";
    BZYRightDropDownCell *cell = [tableView dequeueReusableCellWithIdentifier:rightCellId];
    if (cell == nil) {
        cell = [[BZYRightDropDownCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:rightCellId];
        
        //在创建cell的时候, 设置默认背景
        cell.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg_dropdown_rightpart"]];
        
        //设置选中背景
        cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg_dropdown_right_selected"]];
    }
    return cell;
}

@end
